package com.visionblue.business.ship.page.orders

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.visionblue.business.ship.R
import com.visionblue.business.ship.model.bean.response.OrdersApplyInfo
import com.visionblue.business.ship.model.bean.response.OrdersReceiveInfo
import kotlinx.android.synthetic.main.item_receive_order.*


class OrderApplyListAdapter(
    layout: Int
) :
    BaseQuickAdapter<OrdersApplyInfo, BaseViewHolder>(layout) {

    override fun convert(helper: BaseViewHolder, item:OrdersApplyInfo) {
        if(item!=null){
            helper.addOnClickListener(R.id.ll_btn_check)

            helper.setText(R.id.tv_createTime,item.createTime)
            helper.setText(R.id.tv_fishPortName,item.fishportName)
        }

    }

   /* interface OnClickItem {
        fun itemOnClickItem(recordContent: OrdersReceiveInfo.OrderReceiveData.ReceiveContent)
    }

    private var onClickItem: OnClickItem? = null

    fun setOnClickItem(onClickItem: OnClickItem) {
        this.onClickItem = onClickItem
    }*/

}